package com.cssw.fyzb.core.dao.pay;

import com.cssw.fyzb.core.model.dodb.QuickNotifyLog;
import com.cssw.fyzb.core.model.dodb.UserQuickSign;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * @Author: yangyiqun
 * @Date: 2021/2/17 14:20
 */
@Repository
public class QuickNotifyLogDaoImpl implements QuickNotifyLogDao {


    @Override
    public Long save(Long userId, String orderNo, String busiNo, String type, String errorCode, String errorMsg, String param) {
        QuickNotifyLog log = new QuickNotifyLog();
        log.setUserId(userId);
        log.setOrderNo(orderNo);
        log.setUserId(userId);
        log.setOrderNo(orderNo);
        log.setBusiNo(busiNo);
        log.setType(type);
        log.setErrorCode(errorCode);
        log.setErrorMsg(errorMsg);
        log.setParam(param);
        log.setCreateTime(new Date());
        log.save();
        return log.getLogId();
    }
}
